package com.kang.dao;

import java.util.List;
import com.kang.pojo.InventoryLocation;
import com.vonechina.entity.page.InventoryLocationPage;

/**
 * 库位持久层
 * @author zs614
 *
 */
public interface InventoryLocationMapper {
	/**
	 * 删除子库位
	 * @param inventorylocationid 库位ID
	 * @return
	 */
	public int deleteChild(Integer inventorylocationid);

	/**
	 * 查询子库位
	 * @param inventorylocationid 库位ID
	 * @return
	 */
	public List<InventoryLocation> listInventoryLocationById(Integer inventorylocationid);

	/**
	 * 分页查询库位
	 * @param page 搜索条件实体类
	 * @return
	 */
	public List<InventoryLocation> listInventoryLocation(InventoryLocationPage page);

	/**
	 * 查询库位数量
	 * @param page 搜索条件实体类
	 * @return
	 */
	public int countInventoryLocation(InventoryLocationPage page);

	/**
	 * 删除库位
	 * @param inventorylocationid  库位ID
	 * @return
	 */
	public int deleteByPrimaryKey(Integer inventorylocationid);

	/**
	 * 新增库位
	 * @param record 库位实体类
	 * @return
	 */
	public int insertSelective(InventoryLocation record);

	/**
	 * 通过主键查询库位
	 * @param inventorylocationid 库位ID
	 * @return
	 */
	public InventoryLocation selectByPrimaryKey(Integer inventorylocationid);

	/**
	 * 更新库位信息
	 * @param record 库位实体类
	 * @return
	 */
	public int updateByPrimaryKeySelective(InventoryLocation record);

	/**
	 *  搜索最大库位编码
	 * @return
	 */
	public String selectMaxCode();

}